<template>
  <div class="nav-bar">
    <div class="nav-bar-item">
      <div class="left"><slot name="left"></slot></div>
      <div class="center"><slot name="center"></slot></div>
      <div class="right"><slot name="right"></slot></div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Nav-Bar",
  data(){
    return{
      tabControlList:['畅销','新书','精选'],
    }
  }
}
</script>

<style scoped lang="css">
    .nav-bar{
      position: fixed;
      top: 0;
      right: 0;
      left: 0;
      height: 45px;
      width: 100%;
      background-color: #42bBaa;
      line-height: 45px;
      z-index: 9;
    }
    .nav-bar-item{
      display: flex;
      width: 100%;
      justify-content: space-between;
      color: #fff;
      align-items: center;
      font-size: 16px;
    }
    .center{
      /*width: 200px;*/
      text-align: center;
      flex: 1;
    }
    .left{
      width: 30px;
    }
    .right{
      display: flex;
      align-items: center;
      justify-content: center;
      width: 30px;
      line-height: 45px;
    }
</style>